# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
vespa_define_module(
    DEPENDS
    vespadefaults
    fastos
    configdefinitions
    config_cloudconfig
    vespalog
    document
    documentapi
    vespalib
    staging_vespalib

    LIBS
    src/vespa/vespaclient/clusterlist

    APPS
    src/vespa/vespaclient/spoolmaster
    src/vespa/vespaclient/vdsstates
    src/vespa/vespaclient/vespadoclocator
    src/vespa/vespaclient/vesparoute
)

vespa_install_script(src/perl/bin/SetNodeState.pl vespa-set-node-state bin)
vespa_install_script(src/perl/bin/GetNodeState.pl vespa-get-node-state bin)
vespa_install_script(src/perl/bin/GetClusterState.pl vespa-get-cluster-state bin)

install(DIRECTORY src/perl/lib/Yahoo/Vespa/
        DESTINATION lib/perl5/site_perl/Yahoo/Vespa
        FILES_MATCHING
        PATTERN "*.pm")

install(DIRECTORY src/perl/lib/Yahoo/Vespa/Bin/
        DESTINATION lib/perl5/site_perl/Yahoo/Vespa/Bin
        FILES_MATCHING
        PATTERN "*.pm")
